package test.myorm.chain;

import java.util.ArrayList;
import java.util.List;

public class Chain {
	
	private List<Interceptor> interceptors = new ArrayList<>();
	
	public void addInterceptor(Interceptor interceptor) {
		this.interceptors.add(interceptor);
	}
	
	public void addInterceptors(List<Interceptor> interceptors) {
		this.interceptors.addAll(interceptors);
	}

	public List<Interceptor> getInterceptors() {
		return interceptors;
	}

}
